<template>
    <div>
        <div class="has">
            <router-link to="goods" tag="div">
              <div class="xt"><van-icon size="30" name="home-o" /></div>
              <p>首页</p>
            </router-link>
            <router-link to="classify" tag="div">
              <div class="xt"><van-icon size="30" name="apps-o" /></div>
              <p>分类</p>
            </router-link>
            <router-link to="cart" tag="div">
              <div class="xt"><van-icon size="30" name="shopping-cart-o" /></div>
              <p>购物车</p>
            </router-link>
            <router-link to="mys" tag="div">
              <div class="xt"><van-icon size="30" name="contact-o" /></div>
              <p>我的</p>
            </router-link>
        </div>
        <router-view />
    </div>
                <!-- 首页
                <van-icon name="home-o" />
                分类
                <van-icon name="apps-o" />
                购物车
                <van-icon name="shopping-cart-o" />
                我的
                <van-icon name="contact-o" />
             -->
</template>

<script>
    export default {
        
    }
</script>

<style lang="scss" scoped>
.has{
    position: fixed;
    bottom: 0;
    width: 7.5rem;
    height: 1rem;
    line-height: 0.84rem;
    background: #fff;
    padding-top: 0.2rem;
    z-index: 20;
    // background: orange;
    // padding: 0.3rem;

  div{
    width: 1.875rem;
    float: left;
    height: 1rem;
    // margin-left: .3rem;
    // font-weight: bold;
    font-size: .26rem;
    text-align: center;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
    color: #514d7f;
    p{
      height: 0.5rem;
      line-height: 0.5rem;
    }
    .xt{
      height: 0.5rem;
      // line-height: 0.5rem;
    }
    &.router-link-exact-active {
      color: #0a76f5;
    }
    &.router-link-exact-active .xt{
      color: #0a76f5;
    }
  }
}
</style>